<?php
class SiteAction extends AppAction{
    //获取站点
    public function index(){
        if($_POST['userName']){
            $map['username']=$_POST['userName'];
            $siteid=D('Member')->where($map)->field('site_id')->find();
            $this->callback($siteid);
        }
    }
}